varying vec3 normal;
varying vec3 position;
varying vec3 localPosition;

void main(){
	gl_Position = ftransform();
	gl_TexCoord[0] = gl_MultiTexCoord0;
	gl_TexCoord[1] = gl_MultiTexCoord1;
	gl_TexCoord[2] = gl_MultiTexCoord2;
	gl_TexCoord[3] = gl_MultiTexCoord3;
	gl_TexCoord[4] = gl_MultiTexCoord4;
	

	normal = normalize( gl_NormalMatrix * gl_Normal);
    position = vec3( gl_ModelViewMatrix * vec4(gl_Vertex.xyz,1.0) );
    localPosition = gl_Vertex.xyz;
	gl_TexCoord[5].xyz = gl_Normal;
}